<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flexbox 卡片布局</title>
    <style>
        .container {
            display: flex;
            justify-content: space-between; /* 水平排列，间隔相等 */
            flex-wrap: wrap; /* 允许换行 */
            gap: 20px; /* 间距 */
        }
        .card {
            flex: 1 1 calc(33.333% - 20px); /* 三等分，减去间距 */
            background: lightblue;
            padding: 20px;
            text-align: center;
            border-radius: 10px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="card">卡片 1</div>
        <div class="card">卡片 2</div>
        <div class="card">卡片 3</div>
        <div class="card">卡片 4</div>
        <div class="card">卡片 5</div>



    </div>
</body>
</html>